package concurrent.chapter02;

/**
 * @Comment:两个线程交替打印1-100奇偶数：考察线程通信：wait notify
 * @Author:Shem
 * @Date:2019/5/25
 */
public class Main {

    public static void main(String[] args) throws InterruptedException {
        PrintTask printTask = new PrintTask();
        new Thread(printTask, "线程A").start();
        Thread.sleep(10);
        new Thread(printTask, "线程B").start();
    }
}
